package za.org.jcicada.genss.sensor.impl;

import java.net.URISyntaxException;

import za.org.jcicada.genss.sensor.SensorURN;

/**
 * Sensor sampling strategy that does not return any samples.
 * @author rcrida
 */
public class StrategyNone extends StrategyBase {
	private static final long serialVersionUID = 1L;
	
    public StrategyNone(SensorURN sensorURN) {
        super(sensorURN);
    }

    /**
     * Construct strategy from string array
     * @param args created by toStringArray
     * @throws URISyntaxException
     */
    public StrategyNone(String[] args) throws URISyntaxException {
        this(new SensorURN(args[0]));
    }
    
    public String[] toStringArray() {
        return new String[]{getSensorURN().toString()};
    }

}
